/**
 *
 */
package com.codebase.oval.controller;

import com.codebase.oval.annotation.IDCardOval;
import com.codebase.oval.annotation.Pojo;
import net.sf.oval.constraint.NotNull;

/**
 * @describe:
 * @author:houkai
 * @Date: 2018/5/2 14:44
 * @version 1.0
 */
public class Student {
    @NotNull(errorCode = "001", message = "姓名不能为空")
    private String name;
    @IDCardOval(message = "certNo不能为空")
    private String certNo;
    @NotNull
    @Pojo
    private Book book;

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
